package tr.edu.yildiz.dap.appeditor.componentproviders;

import java.util.ArrayList;
import java.util.List;

import tr.edu.yildiz.dap.appeditor.componentproviders.basic.AbstractComponentProvider;
import tr.edu.yildiz.dap.appeditor.componentproviders.basic.ComponentManager;
import tr.edu.yildiz.dap.appeditor.model.AppComponent;
import tr.edu.yildiz.dap.appeditor.model.MavenAppComponent;

public class MavenComponentProvider extends AbstractComponentProvider {

	
	public MavenComponentProvider(ComponentManager componentProvider) {
		super(componentProvider);
	}

	//TODO : us nexus indexer plugin to retrieve list of components
	@Override
	public List<AppComponent> listComponents() {
		return new ArrayList<AppComponent>();
	}

	@Override
	public AppComponent getComponent(String artifactId, String groupId,
			String version) {
		MavenAppComponent appComponent = new MavenAppComponent();
		appComponent.setGroupId(groupId);
		appComponent.setId(artifactId);
		appComponent.setVersion(version);
		return appComponent;
	}

}
